package com.qd.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 岗位组织
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_station_org")
public class StationOrg extends Model<StationOrg> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "org_station_id", type = IdType.ASSIGN_ID)
    private String orgStationId;
    /**
     * 组织
     */
    @TableField("org_id")
    private String orgId;
    /**
     * 职责
     */
    @TableField("station_id")
    private String stationId;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;

    public void freeData() {
        this.orgStationId = null;
        this.orgId = null;
        this.stationId = null;
        this.addTime = null;
    }

}
